﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucMainMenu.ascx.cs"
    Inherits="SES.CMS.Module.ucMainMenu" %>
<ul class="Menulink" style="display: none;">
    <asp:Repeater runat="server" ID="rptMainMenu">
        <ItemTemplate>
            <li><a href='/SanPham/pt/<%#Eval("LoaiSanPhamID")%>/<%#FriendlyUrl(Eval("TenLoaiSanPham").ToString()) %>'
                title='<%#Eval("MoTa")%>'>
                <%#Eval("TenLoaiSanPham")%>
            </a></li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
<div class="menu-left" style="display: none;">
</div>
<ul class="main-menu">
    <asp:Repeater runat="server" ID="rptMainMenuTop" OnItemDataBound="rptMainMenuTop_ItemDataBound">
        <ItemTemplate>
            <li><a href='<%#Eval("Link")%>' title='<%#Eval("Title") %>'>
                <%#Eval("Title") %></a>
                <asp:Panel runat="server" ID="pnal1" Visible="false">
                    <ul class="menu1">
                        <asp:Repeater runat="server" ID="rptMenu1cot">
                            <ItemTemplate>
                                <li><a href='<%#Eval("Link")%>' title='<%#Eval("Title") %>'>
                                    <%#Eval("Title") %></a> </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </asp:Panel>
                <asp:Panel runat="server" ID="pnal2" Visible="false" CssClass="menu-2-box">
                   
                        <asp:Repeater runat="server" ID="rptMenu2CotParent" OnItemDataBound="rptMenu2CotParent_ItemDataBound">
                            <ItemTemplate>
                             <div class="m-1">
                            <h5><%#Eval("Title")%></h5>
                                <ul>
                                    <asp:Repeater runat="server" ID="rptMenu2cot">
                                        <ItemTemplate>
                                            <li><a href='<%#Eval("Link")%>' title='<%#Eval("Title") %>'>
                                                <%#Eval("Title") %></a> </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                                 </div>
                            </ItemTemplate>
                        </asp:Repeater>
                   
                </asp:Panel>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
